package vo

// FragItem 搜索结果中标题或正文的片段，一个标题和正文有多个片段组成
// Keyword 该部分是否是关键词
// Txt 文本内容
type FragItem struct {
	Keyword bool
	Txt     string
}

type SearchResult struct {
	FullTitle  string
	TitleParts []FragItem
	ContParts  []FragItem
	Tags       []string
}

type PreciseTag struct {
	Tag     string
	QuotCnt int
}

type SearchResultExtra struct {
	PreciseTags     []PreciseTag
	HasUnclosedQuot bool
}

type FulltextSearchResp struct {
	BaseActionResp
	Items []SearchResult
	Extra SearchResultExtra
}
